package com.lagou.edu.mvcframework.pojo;

import java.util.Set;
import java.util.regex.Pattern;

public class Interceptor {
    private Pattern pattern; // spring中url是支持正则的

    private Set<String> allowedPersons;

    public Interceptor(Pattern pattern, Set<String> allowedPersons) {
        this.pattern = pattern;
        this.allowedPersons = allowedPersons;
    }

    public Pattern getPattern() {
        return pattern;
    }

    public void setPattern(Pattern pattern) {
        this.pattern = pattern;
    }

    public Set<String> getAllowedPersons() {
        return allowedPersons;
    }

    public void setAllowedPersons(Set<String> allowedPersons) {
        this.allowedPersons = allowedPersons;
    }
}
